package com.shenmazong;

import com.shenmazong.util.ZipUtils;

/**
 * @author 田不平
 * @project server-security
 * @date 2020/5/14 8:38 AM
 * http://www.shenmazong.com
 */
public class AppMain {

    public static void main(String[] args) {

        String msg = "hello,worldhello,worldhello,worldhello,worldhello,worldhello,worldhello,worldhello,worldhello,worldhello,worldhello,worldhello,worldhello,worldhello,world";
        String gzip_msg = ZipUtils.gzip(msg);
        System.out.println(gzip_msg);

        String decode_msg = ZipUtils.gunzip(gzip_msg);
        System.out.println(decode_msg);

        return;
    }
}
